package com.entity;

/**
 * Author: foshou.zhang
 * Date : 2016/3/6 0006
 * Time :下午 4:27
 */
public class Book {
    private Integer id;
    private String bookName;//书名
    private String subCategoryName;//子分类名
    private Double price;//价格
    private String introduction;//简介
    private String picture;//书籍的图片

    public Book() {
    }

    public Book(String bookName, String subCategoryName, Double price, String introduction, String picture) {
        this.bookName = bookName;
        this.subCategoryName = subCategoryName;
        this.price = price;
        this.introduction = introduction;
        this.picture = picture;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getBookName() {
        return bookName;
    }

    public void setBookName(String bookName) {
        this.bookName = bookName;
    }

    public String getSubCategoryName() {
        return subCategoryName;
    }

    public void setSubCategoryName(String subCategoryName) {
        this.subCategoryName = subCategoryName;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }

    public String getIntroduction() {
        return introduction;
    }

    public void setIntroduction(String introduction) {
        this.introduction = introduction;
    }

    public String getPicture() {
        return picture;
    }

    public void setPicture(String picture) {
        this.picture = picture;
    }

    @Override
    public String toString() {
        return "Book{" +
                "id=" + id +
                ", bookName='" + bookName + '\'' +
                ", subCategoryName='" + subCategoryName + '\'' +
                ", price=" + price +
                ", introduction='" + introduction + '\'' +
                ", picture='" + picture + '\'' +
                '}';
    }
}
